package com.inspur.edp.common.expr.expresses.variable;


import com.inspur.edp.common.expr.Express;
import com.inspur.edp.common.expr.ExpressDSLGenerator;
import com.inspur.edp.common.expr.ast.ASTContext;

/**
 * @author lizhaorui
 * @description TODO
 * @date 2025/2/7 11:22
 */
public class VariableRefDSL implements ExpressDSLGenerator {

    @Override
    public String getKind() {
        return VariableRefExpr.KIND;
    }

    @Override
    public String generate(ASTContext context, Express express) {
        VariableRefExpr variableExpr = (VariableRefExpr) express;
        return variableExpr.getVariableCode();
    }
}
